


class MenuItem {
  constructor() {
    this.icon = ''
    this.menuCode = ''
    this.menuName = ''
    this.url = ''
  }

  setIcon(icon) {
    this.icon = icon;
    return this;
  }

  setCodeAndName(code, name) {
    this.menuCode = code
    this.menuName = name
    return this
  }

  setChildren(arr = []) {
    this.children = arr
    return this
  }

  setOtherProp(val = {}) {
    this.otherProp = val;
    return this;
  }
}

export default MenuItem;
